<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions 
 * @package    Communityad
 * @copyright  Copyright 2009-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Controller.php 2011-02-16 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Communityad_Widget_UserNavigationController extends Engine_Content_Widget_Abstract
{
	protected $_navigation;
  public function indexAction()
  {
  	$this->view->navigation = $this->getNavigation();
  }
 	 //NAVIGATION FUNCTION TO SHOW TABS
	public function getNavigation($active = false)
  {
    if( is_null($this->_navigation) ) {
      $navigation = $this->_navigation = new Zend_Navigation();
			$navigation->addPage(array(
				'label'      => $this->view->translate('Ad Board'),
				'route'      => 'default',
				'action'     => 'adboard',
				'controller' => 'display',
				'module'     => 'communityad'
			));

			$navigation->addPage(array(
				'label'      => $this->view->translate('My Campaigns'),
				'route'      => 'default',
				'module'     => 'communityad',
				'controller'     => 'statistics',
				'action' => 'index'
			));

			$navigation->addPage(array(
				'label'      => $this->view->translate('Create an Ad'),
				'route'      => 'communityad_listpackage'
			));

			$navigation->addPage(array(
				'label'      => $this->view->translate('Packages'),
				'route'      => 'default',
				'action'     => 'packges',
				'controller' => 'index',
				'module'     => 'communityad'
			));

			$navigation->addPage(array(
				'label'      => $this->view->translate('Help & Learn More'),
				'route'      => 'default',
				'action'     => 'help-and-learnmore',
				'controller' => 'display',
				'module'     => 'communityad'
			));
    }
    return $this->_navigation;
  }
}
?>